import request from '@/utils/request'

// 查询评价测量技术列表
export function listTechnique(query) {
  return request({
    url: '/qcmasterdata/measuringTechnique/list',
    method: 'get',
    params: query
  })
}

// 查询评价测量技术详细
export function getTechnique(id) {
  return request({
    url: '/qcmasterdata/measuringTechnique/' + id,
    method: 'get'
  })
}

// 新增评价测量技术
export function addTechnique(data) {
  return request({
    url: '/qcmasterdata/measuringTechnique',
    method: 'post',
    data: data
  })
}

// 修改评价测量技术
export function updateTechnique(data) {
  return request({
    url: '/qcmasterdata/measuringTechnique',
    method: 'put',
    data: data
  })
}

// 删除评价测量技术
export function delTechnique(id) {
  return request({
    url: '/qcmasterdata/measuringTechnique/' + id,
    method: 'delete'
  })
}

// 导出评价测量技术
export function exportTechnique(query) {
  return request({
    url: '/qcmasterdata/measuringTechnique/export',
    method: 'post',
    params: query
  })
}
